package cn.com.okgotest.fragment.base;

import android.app.Fragment;

import com.github.jlmd.animatedcircleloadingview.AnimatedCircleLoadingView;

/**
 * Created by luwenlong on 2017/8/29.
 */

public class BaseFragment extends Fragment {

    private boolean isStartDeterminate;

    public void startDeterminate(AnimatedCircleLoadingView progressBar) {
        if (!isStartDeterminate) {
            progressBar.startDeterminate();
            isStartDeterminate=true;
        } else {
            progressBar.resetLoading();
            progressBar.startIndeterminate();
        }
    }

}
